package com.hsmw.api.controller.integral;


import com.hsmw.api.service.HsmwGoodsOrderService;
import com.htn.common.core.base.DataResponse;
import com.hsmw.domain.HsmwGoodsOrder;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import com.hsmw.common.base.BaseController;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author tjy
 * @since 2021-07-20
 */
@Api(tags = "积分商品订单")
@RestController
@RequestMapping("/hsmw-goods-order")
public class HsmwGoodsOrderController extends BaseController<HsmwGoodsOrderService,HsmwGoodsOrder> {



    @Autowired
    private HsmwGoodsOrderService hsmwGoodsOrderService;


    @ApiOperation(value = "查询订单列表", notes = "查询订单列表", produces = "application/json")
    @ApiImplicitParam(name = "司机id", value = "id", dataType = "String")
    @PostMapping("findGoodsOrderListByDriId")
    public DataResponse findGoodsOrderListByDriId(String id){

        List<HsmwGoodsOrder> list = hsmwGoodsOrderService.findGoodsOrderListByDriId(id);
        return new DataResponse(list);
    }
}

